package com.zhuoyue.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
//@TableName(value = "tbl_security_log")
public class TblSecurityLog implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.UPDATE)
    private LocalDateTime modifyTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time")
    private String createTime;

    //@TableField(value = "gateway_mac")
    private String gatewayMac;

    //@TableField(value = "device_mac")
    private String deviceMac;

    @TableField(value = "content")
    private String content;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "account", select = false)
    private String account;

    @TableField(value = "nick_name", select = false)
    private String nickName;

    @TableField(value = "org_code", select = false)
    private String orgCode;
}
